package com.ruoyi.labour.enums;

public enum UploadCardStatus {

    UNANDITED(0, "未审核"),
    NO_PASS(1, "未通过"),
    PASSED(2, "已通过");

    private final Integer code;
    private final String info;

    UploadCardStatus(Integer code, String info) {
        this.code = code;
        this.info = info;
    }

    public static String parse(final Integer codes) {
        for (final UploadCardStatus item : UploadCardStatus.values()) {
            if (item.getCode().equals(codes)) {
                return item.getInfo();
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}
